package com.xbf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xbf.dto.CartGoodsDTO;
import com.xbf.entity.Shop;

import java.util.List;

public interface ShopService extends IService<Shop> {
    boolean addToCart(Shop shop);
    List<Shop> getCartByUserId(Integer userId);
    boolean updateCartItem(Shop shop);
    boolean deleteCartItem(Integer id);

    List<CartGoodsDTO> getCartGoods(Integer userId);
}